Official Luthiers Forum! http://www-.luthiersforum.com/forum/ |
|
HTML Syntax Question http://www-.luthiersforum.com/forum/viewtopic.php?f=10102&t=10207 |
Page 1 of 1 |
Author: | Brock Poling [ Sat Jan 06, 2007 9:24 am ] |
Post subject: | |
I have an HTML question, I don't use this command very often and forget the syntax (and all my books are at the office). Does anybody know the parameters for controlling a new window spawned from an "a href" command using the target=blank parameter. Specifically what I am looking for is to control the size of the window and surpressing the menus. TIA |
Author: | James Orr [ Sat Jan 06, 2007 2:08 pm ] |
Post subject: | |
Controlling the window size is a java command, but the other half you're looking for is <a href="url"target="_blank">yada</a> It comes from using old school frames. target="frameName". |
Author: | James Orr [ Sat Jan 06, 2007 2:25 pm ] |
Post subject: | |
I googled for some java script and this looks like the best option. This will go in the head: <SCRIPT LANGUAGE="JavaScript"> <!-- function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar =1,resizable=1,width=400,height=400');"); } --> </script> The variables are in blue. 1 means yes, and 0 means no. If you don't want your window to show your url, location=0. If you don't want a toolbar, toolbar=0. This will be how you build your link: <a href="javascript:popUp('http://url.com')">Open the Popup Window</a> And enter your url |
Author: | Brock Poling [ Sat Jan 06, 2007 3:03 pm ] |
Post subject: | |
Perfect... thank you. ![]() |
Author: | James Orr [ Sun Jan 07, 2007 8:18 am ] |
Post subject: | |
Sure thing. I've wondered about it, too . |
Page 1 of 1 | All times are UTC - 5 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |